package com.opentae.data.mall.interfaces;

import com.opentae.core.mybatis.config.MyBatisRepository;
import com.opentae.core.mybatis.mapper.Mapper;
import com.opentae.data.mall.beans.MallPostfee;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;

import java.util.List;

/**
 * 
 * Created by exampleCreater.
 */
@MyBatisRepository("tae_mall_mallPostfeeMapper")
@Scope("singleton")
@Lazy(true)
public interface MallPostfeeMapper extends Mapper<MallPostfee> {
    /**
     * @description 查询子模板
     * @author 郭尔
     * @date 2019/1/13 13:15
     */
    MallPostfee selectByFatherId(@Param("fatherId") Long fatherId);

    /**
     * @description 根据省份查询相应的子模板
     * @author 郭尔
     * @date 2019/1/13 13:15
     */
    MallPostfee checkProvFee(@Param("provId")Long provId,@Param("fatherId") Long fatherId);

    /**
     *
     * @description
     * @author 郭尔
     * @date 2019/1/18 15:13
     */
    List<String> getUseItem(@Param("feeId")Long feeId);
}
